﻿$(document).ready(function(){
	$(".menu > li").click(function(e){
		switch(e.target.id){
			case "people":
			    $("#people").removeClass("inactive");
				$("#people").addClass("active");
			    $("#places").removeClass("active");
				$("#places").addClass("inactive");

				$("div.people").fadeIn();
				$("div.places").css("display", "none");
				$("#topPagination").css("display", "block");
				$("#bottomPagination").css("display", "block");

			break;
			case "places":
			     $("#places").removeClass("inactive");
			     $("#places").addClass("active");
				 $("#people").removeClass("active");
				 $("#people").addClass("inactive");
			
				$("div.places").fadeIn();
				$("div.people").css("display", "none");
				$("#topPagination").css("display", "none");
				$("#bottomPagination").css("display", "none");
    		break;
		}
		return false;
	});
});